<?php
/*********
*    首页控制器
*/
namespace Home\Controller;
use Home\Controller\HomeController;
class BannerController extends HomeController {
 	public function _initialize(){
 		parent::_initialize();
 		
 	}
	public function getBanner(){
		$banner = M('Banner');
    	$list = $banner->where(array('status'=>1))->order('sort desc')->select();
    	$this->ajaxReturn($list,'JSONP');
	}
}
